package com.example.stock.excel;

import cn.hutool.core.date.DateUtil;
import com.alibaba.excel.annotation.ExcelProperty;
import lombok.Data;

@Data
public class StockDailyMonitor {

    @ExcelProperty("date")
    private String date;

    public void setDate(String date) {
        this.date = DateUtil.format(DateUtil.parse(date), "yyyy-MM-dd");
    }

    @ExcelProperty("stock")
    private String stock;

    @ExcelProperty("type")
    private String type;

    @ExcelProperty("priceType")
    private String priceType;

    @ExcelProperty("extra")
    private String extra;

    @ExcelProperty("monitorDate")
    private String monitorDate;
}